package Demo;

public class Test {
    public static void main(String[] args) {
        MyArray myArray = new MyArray();
        myArray.addLast(1);
        myArray.addLast(2);
        myArray.addLast(3);
        myArray.addLast(4);
        myArray.addLast(5);
        myArray.addLast(6);
        myArray.add(2,999);
        int a = myArray.find(123);
//        myArray.delete(2);

        System.out.println(a);
        for (int i = 0;i < myArray.UsedSize;i++){
            System.out.println(myArray.elem[i]);
        }

    }
}
